package com.heu.reggie.common;

/**
 * @author: lidong
 * @description
 * @date: 2022/11/5 16:00
 */
public class BaseContext {
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();
    public static void setCurrentId(Long id){
        threadLocal.set(id);
    }
    public static Long getCurrentId(){
        return threadLocal.get();
    }
}
